package com.im.common.utils;


import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;
import java.util.UUID;

public class Utility {
    public static String md5( String str ){
        String md5 = DigestUtils.md5DigestAsHex(str.getBytes(StandardCharsets.UTF_8));
        return md5;
    }

    public static String uuid(){
        String uuid = UUID.randomUUID().toString();
        return uuid;
    }
}
